// 入库查询接口类型定义
export interface flowQueryParam {
  searchParams: {
    aoCode?: string;
    barcode?: string;
    endDate?: string;
    itemCode?: string;
    mProductNumber?: string;
    qualityCode?: string;
    startDate?: string;
    workbinCode?: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}
// 退库查询接口类型定义
export interface returnQueryParam {
  searchParams: {
    itemCode: string;
    billNo: string;
    returnDeliveryShop: string;
    returnReceiveShop: string;
    productCode: string;
    batchNo: string;
    startLotNo: string;
    endLotNo: string;
    qualityCode: string;
    accordingNo: string;
    applyEmpCode: string;
    startTime: string;
    endTime: string;
    status: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}
// 库存台账查询
export interface byItemParam {
  searchParam: {
    productCode?: string;
    batchNo?: string;
    restCount?: number;
    itemCode?: string;
    qualityCode?: string;
    mProductNumber?: string;
    mParentNumber?: string;
    inEmpCode?: string;
    deliveryShop?: string;
    requireShop?: string;
    barcode?: string;
    wmsItemInventoryId?: string;
    wmsDeliveryPlanId?: string;
    aoCode?: string;
    startDate?: string;
    endDate?: string;
  };
  page: {
    currentPage?: number;
    pageSize?: number;
  };
}
// 交接查询
export interface DeliverySearchParam {
  searchParams: {
    productCode: string; // 机型
    batchNo: string; // 批次
    startLotNo: string; // 起始架次
    endLotNo: string; // 截止架次
    wmsDeliveryPlanId: string; // 交接单ID
    itemCode: string; // 图号
    qualityCode: string; // 质量编号
    barcode: string; // 条码
    deliveryStatus: string; // 交接状态
    deliveryStatu: string; // 是否正常
    deliveryPlanCode: string; // 交接单号
    deliveryShop: string; // 移交单位
    requireShop: string; // 需求单位
    receiveOrgCode: string; // 接收组织代码
    mProductNumber: string; // 成品型号
    deliveryDate: string | null; // 日期，可能为空
    aoCode: string; // AO编号
  };
  pageParameter: {
    rows: number; // 页面大小（最大显示条数）
    page: number; // 当前页
  };
}
// 托盘信息查询
export interface PalletDataParam {
  searchParams: {
    palletCode: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 库存架次信息
export interface SingleSearchParam {
  searchParams: {
    productCode: string;
    itemCode: string;
    mProductNumber: string;
    qualityCode: string;
    lotNum: number;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 出库流水信息
export interface OutInFlowParam {
  queryParam: {
    itemCode: string;
    qualityCode: string;
    aoNo: string;
    hgzNo: string;
    outInStatus: string;
    invTransactStatus: string;
    startTime: string;
    endTime: string;
    wmsItemInventoryId: string;
    allotId: string;
  };
  page: {
    total: number;
    pageSize: number;
    currentPage: number;
  };
}
// ERP出库叫箱
export interface ERPOutSearchParam {
  searchParams: {
    itemCode: string;
    mProductNumber: string;
    qualityCode: string;
    workbinCode: string;
    barcode: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 配套信息-配送明细
export interface QuerySortInfoParam {
  queryMap: {
    planeNo: string;
    aoCode: string;
    itemCode: string;
    qualityCode: string;
    station: string;
    isSort: string;
    status: string;
    state: string;
    isDailyPlan: string;
  };
  page: {
    total: number;
    pageSize: number;
    currentPage: number;
  };
}
// 配套信息-配送托盘
export interface QuerySendToolParam {
  queryMap: {
    planeNo: string;
    aoCode: string;
    itemCode: string;
    qualityCode: string;
    station: string;
    isSort: string;
    status: string;
    state: string;
    isDailyPlan: string;
  };
  page: {
    total: number;
    pageSize: number;
    currentPage: number;
  };
}

// 配送查询
export interface DeliveryQueryParam {
  queryParam: {
    planeNo: string;
    itemCode: string;
    aoCode: string;
    qualityCode: string;
    isSend: string;
  };
  page: { currentPage: number; pageSize: number };
}

// 实时库存汇总
export interface PageInventoryDetailsParam {
  itemCode: string;
  qualityCode: string;
  barCode: string;
  batchNo: string;
  lotNo: string;
  inventoryStartDate: string;
  inventoryEndDate: string;
  InEmpCode: string;
  InvShop: string;
  rowNo: string;
  shelvesCode: string;
  workBinCode: string;
  isEmpty: string;
  pageSize: number;
  currentPage: number;
}
